<?php
class mod_sidebar extends xmldb{
	
	public function getblogs(){
		$blogs = array();
		foreach($this->xml->blogs->children() as $blog){
			$blogs[] = (array)$blog;
		}
		return $blogs;
	}
	
	public function getnewss(){
		$newss = array();
		foreach($this->xml->newss->children() as $news){
			$newss[] = (array)$news;
		}
		return $newss;
	}
	
	public function getphotos(){
		$photos = array();
		foreach($this->xml->photos->children() as $photo){
			$photos[] = (array)$photo;
		}
		return $photos;
	}
	
	public function getlinks(){
		$links = array();
		foreach($this->xml->links->children() as $link){
			$links[] = (array)$link;
		}
		return $links;
	}
}
?>
